package com.jzg.sys.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色:菜单
 * </p>
 *
 * @author lzp
 * @since 2019-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SEC_ROLE_MENU")
public class SecRoleMenu extends Model<SecRoleMenu> {

    private static final long serialVersionUID = 1L;

    @TableId("ROLE_MENU_ID")
    private String roleMenuId;

    /**
     * 角色ID
     */
    @TableField("ROLE_ID")
    private String roleId;

    /**
     * MENU_ID
     */
    @TableField("MENU_ID")
    private String menuId;


    @Override
    protected Serializable pkVal() {
        return this.roleMenuId;
    }

}
